<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div class="container" id="content">
		<section class="content-header">
			<h1>
				<i class="fa fa-file"></i> <strong>投标管理</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>投标管理</li>
				<li class="active">投标信息管理</li>
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="box box-info">
				<div class="box-header with-border">
					<i class="fa fa-th-list"></i>
					<h4 class="box-title">投标信息审批</h4>
				</div>
				<div class="row-fluid">
					<div class="span12">
						<div class="pre-scrollable1">
							<div class="widget-content tab-content">
								<form id="bid-audit-form" class="widget-box">
									<div class="nav-tabs-custom">
										<ul class="nav nav-tabs">
											<li class="active"><a href="#tab_1" data-toggle="tab">项目信息</a></li>
											<li th:if="${common==1}"><a id="t2" href="#tab_2"
												data-toggle="tab">普通价格单</a></li>
											<li th:if="${foreign==1}"><a id="t3" href="#tab_3"
												data-toggle="tab">外贸价格单</a></li>
										</ul>
									</div>
									<div class="tab-content">
										<div class="tab-pane active" id="tab_1">
											<input type="hidden" name="bidId" id="bidId"
												th:value="${bid.id}" /> <input type="hidden"
												name="createTime" id="createTime" />
											<div class="widget-content nopadding" id="bidForm">
												<table class="table table-bordered">
													<tbody>
														<tr class="odd gradeX">
															<td width="10%" class="center">项目名称</td>
															<td colspan="3">
																<div class="col-md-11">
																	<input class="form-control" type="text" id="name"
																		name="name" readonly="readonly" th:value="${bid.name}" />
																</div>
															</td>
														</tr>
														<tr class="even gradeC">
															<td width="10%" class="center">招标单位</td>
															<td width="40%">
																<div class="col-md-11">
																	<input class="form-control" type="text" id="bidUnit"
																		name="bidUnit" readonly="readonly"
																		th:value="${bid.bidUnit}" />
																</div>
															</td>
															<td width="10%" class="center">订货单位</td>
															<td width="40%">
																<div class="col-md-11">
																	<input class="form-control" type="text" id="ownerUnit"
																		name="ownerUnit" readonly="readonly"
																		th:value="${bid.ownerUnit}" />
																</div>

															</td>

														</tr>
														<tr class="odd gradeX">
															<td width="10%" class="center">投标发起人</td>
															<td width="40%">
																<div class="col-md-11">
																	<input class="form-control" type="text" id="launcher"
																		name="launcher" readonly="readonly"
																		th:value="${bid.launcher}" />
																</div>
															</td>
															<td width="10%" class="center">发起人部门</td>
															<td width="40%">
																<div class="col-md-11">
																	<input class="form-control" type="text" id="launch"
																		name="launch" readonly="readonly"
																		th:value="${bid.launch}" />
																</div>
															</td>

														</tr>
														<tr class="even gradeC">
															<td width="10%" class="center">投标类型</td>
															<td width="40%">
																<div class="col-md-11">
																	<input class="form-control" type="text" id="type"
																		name="type" readonly="readonly" th:value="${bid.type}" />
																</div>
															</td>
															<td width="10%" class="center">项目类型</td>
															<td width="40%">
																<div class="col-md-11">
																	<input class="form-control" type="text"
																		id="projectType" name="projectType"
																		readonly="readonly" th:value="${bid.projectType}" />
																</div>
															</td>

														</tr>
														<tr class="odd gradeX">
															<td width="10%" class="center">保证金方式</td>
															<td width="40%">
																<div class="col-sm-6">
																	<input class="form-control" type="text" id="cashType"
																		name="cashType" readonly="readonly"
																		th:value="${bid.cashType}" />
																</div>

																<div class="col-sm-3">
																	<button class="btn btn-info btnList1"
																		th:if="${baohan==1}">下载保函</button>
																</div>
															</td>
															<td width="10%" class="center">保证金金额</td>
															<td width="40%">
																<div class="col-md-11">
																	<input class="form-control " type="text" id="cash"
																		name="cash" readonly="readonly" th:value="${bid.cash}" />
																</div>
															</td>
														</tr>
														<tr>
															<td width="10%" class="center">投标日期</td>
															<td width="40%">
																<div class="col-sm-12">
																	<input class="form-control" type="date" id="bidDate"
																		name="bidDate" readonly="readonly"
																		th:value="${#dates.format(bid.bidDate,'YYYY-MM-dd')}" />
																</div>
															</td>
															<td width="10%" class="center">技术方案</td>
															<td width="40%">
																<button class="btn btn-info btnList2">下载技术方案</button> <span
																id="techNum" class="badge label-pill label-primary">0</span>
															</td>
														</tr>
													</tbody>
												</table>

												<table class="table table-bordered">
													<tbody>
														<tr class="odd gradeX">
															<td width="10%">商务条款</td>
															<td colspan="7"><textarea class="form-control"
																	style="width: 100%" id="terms" name="terms" rows="3"
																	th:text="${bid.terms}" readonly="readonly"></textarea></td>
														</tr>
														<tr class="odd gradeX">
															<td width="10%">备注</td>
															<td colspan="7"><textarea class="form-control"
																	style="width: 100%" id="memo" name="memo" rows="3"
																	th:text="${bid.memo}" readonly="readonly"></textarea></td>
														</tr>
													</tbody>
												</table>
												<table class="table table-bordered">
													<tbody>
														<tr class="odd gradeX">
															<td width="8%" class="center">是否100万下常规产品</td>
															<td width="17%"><input class="form-control "
																type="text" id="isUnder100" name="isUnder100"
																readonly="readonly" th:value="${bid.isUnder100}" /></td>
															<td width="8%" class="center">是否新产品或液压隔离泵、自平衡泵</td>
															<td width="17%"><input class="form-control "
																type="text" id="isNew" name="isNew" readonly="readonly"
																th:value="${bid.isNew}" /></td>
															<td width="8%" class="center">是否外贸、除磷系统</td>
															<td width="17%"><input class="form-control "
																type="text" id="isForeign" name="isForeign"
																readonly="readonly" th:value="${bid.isForeign}" /></td>
														</tr>
													</tbody>
												</table>
											</div>
										</div>
										<div class="tab-pane" id="tab_2">
											<div th:replace="bid/quote-common::#common-quote"></div>	
										</div>
										<div class="tab-pane" id="tab_3">
											<div th:replace="bid/quote-foreign::#foreign-quote"></div>
										</div>
									</div>
									<div
										th:replace="audit/audit-levels::hasFiles('no','hasbutton')"></div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>

		<!--引入用户信息弹窗-->
		<div class="modal" id="modal-find-auditor">
			<div class="modal-dialog" role="dialog" style="width: 60%">
				<form id="form-find-user">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>用户查找</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="box-body">
									<div class="form-inline">
										<div class="input-group">
											<input type="text" class="form-control" id="search"
												placeholder="Search..." /> <span class="input-group-btn">
												<button type="button" id="btn-search"
													class="btn btn-info app-btn-search">查询</button>
												<button type="button" id="btn-reset"
													class="btn btn-info app-btn-reset">撤消</button>
											</span>
										</div>
									</div>
								</div>
								<div class="box box-body">
									<table id="dataTable"
										class="mytable dataTable table-bordered text-center table-striped table-hover"
										cellspacing="0" width="100%" align="center">
										<thead>
											<tr>
												<th width="10%">序号</th>
												<th width="20%">姓名</th>
												<th width="20%">性别</th>
												<th width="20%">职务</th>
												<th width="20%">销售区域</th>
												<th width="10%">选择</th>
											</tr>
										</thead>
										<tbody>

										</tbody>
									</table>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-info" id="btn-reference">引入</button>
							<button type="button"
								class="btn btn-default app-find-user-return"
								data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<!--引入用户信息弹窗结束-->
		<script th:inline="javascript">
			/*<![CDATA[*/
			var bidName = /*[[${bidName}]]*/' ';
			var bidId = /*[[${bidId}]]*/' ';
			/*]]>*/
		</script>
		<script th:src="@{/bid/bid-audit.js}"></script>
		<script th:src="@{/bid/bidQuote.js}"></script>
		<script th:src="@{/bid/bidForeignQuote.js}"></script>
	</div>


</body>
</html>